package com.pxst.plugins.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pxst.entity.BaseEntity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/** 
* @author yangxy
* @version 创建时间：2023年9月4日 下午6:05:37 
*/
@Data
@TableName("sys_plugs")
public class PluginsEntity extends BaseEntity{
	@TableId(type = IdType.ASSIGN_ID)
	private Long id;
	
	@NotBlank(message = "插件名称不能为空")
	@ApiModelProperty(value = "插件名称",required = true)
	private String plugsName;
	
	@NotBlank(message = "插件bean名称不能为空")
	@ApiModelProperty(value = "插件bean名称",required = true)
	private String beanName;

	@NotBlank(message = "执行方法不能为空")
	@ApiModelProperty(value = "执行方法",required = true)
	private String runMethod;

	@NotBlank(message = "状态不能为空")
	@ApiModelProperty(value = "状态(0 启用，1停用)",required = true)
	private Integer status;

	@NotNull(message = "插件类型不能为空")
	@ApiModelProperty(value = "插件类型(1 银行处理)",required = true)
	private Integer plugsType;
	
	@ApiModelProperty(value = "银行名称（类型为1银行对账时不能为空）")
	private String bankName;
}
